From 5f6e5778663aa3661f158baee797b5c34911a004 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 10 Apr 2008 17:16:08 +0000 Subject: [PATCH] Do not call gtk_widget_set_parent_window(), using widget->window instead MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2008-04-10 Carlos Garnacho * gtk/gtknotebook.c (hide_drag_window): Do not call gtk_widget_set_parent_window(), using widget->window instead of NULL to unset is the wrong thing, and gtk_widget_unparent() will already take care of this (#467698, patch by Sébastien Granjoux) svn path=/trunk/; revision=19987 --- ChangeLog | 7 +++++++ gtk/gtknotebook.c | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4e4d300a98..0b23a91b18 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-04-10 Carlos Garnacho + + * gtk/gtknotebook.c (hide_drag_window): Do not call + gtk_widget_set_parent_window(), using widget->window instead of NULL + to unset is the wrong thing, and gtk_widget_unparent() will already + take care of this (#467698, patch by Sébastien Granjoux) + 2008-04-08 Tor Lillqvist * demos/gtk-demo/builder.c (quit_activate, about_activate): Mark diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 2a9d84ac3b..3bce620c83 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -2730,7 +2730,6 @@ hide_drag_window (GtkNotebook *notebook, else gtk_widget_unparent (page->tab_label); - gtk_widget_set_parent_window (page->tab_label, widget->window); gtk_widget_set_parent (page->tab_label, widget); g_object_unref (page->tab_label); } -- 2.30.2